<div id="bodyLeftContainer"> 
		<!--  
		<ul class="nav nav-pills nav-stacked">
			<li>
				<a href="#">school 1</a>
			</li>
			<li class="active">
				<a href="#">school 2</a>
			</li>
		</ul>
		-->
		<?php echo $schoolListMenu;?>
	</div>


<div id="tableContainer">

	
<?php 

	//if (isset($offers))
		if ( isset($offers) && count($offers) != 0 ) {
			
			//$this->firephp->log($offers);	
			?>
			<table>
				<thead>
					<th>Oferta</th>
					<th>Preço</th>
					<th>nivel</th>
					<th>aulas</th>
					<th>lugares</th>
					<th>vagas</th>
					<th></th>
				</thead>
			<?php		
			foreach ($offers as $value) {
				?>
				<tbody>
					<tr>
						<td>
							<?php 
								echo anchor("Hotel/offer",$value->name);
							?>
						</td>
						<td><?php echo $value->price;?></td>
						<td><?php echo $value->level;?></td>
						<td>
							<?php 
								echo anchor("Hotel/classes",$value->number_of_classes);
							?>
						</td>
						<td>
							<?php 
								echo $value->spots;
							?>
						</td>
						<td>
							<?php 
								echo anchor('Hotel/reservation/'.$value->offer_id,'reservar');
							?>	
						</td>
					</tr>
				</tbody>
				<?php 
			}		
		?>
			</table>
		<?php
		}
		else {
			?><p><?php echo "Nao existem ofertas disponiveis nesta escola";?></p><?php 
		}
	
?>
		
</div>	
	
	<p>
	<?php 
	?>
	</p>

